{ INFORMATICS.MCCME.RU
  Problem statement: http://informatics.mccme.ru/moodle/mod/statements/view3.php?chapterid=352
  Verdict: Accepted
}
uses SysUtils, Math;
 
var
	a:longint;
 
function pow(a,b:int64):int64;
var pw:int64;
begin
if b=0 then result:=1 else begin
  pw:=a;
  result:=1;
  while b>0 do begin
    if b mod 2=1 then result:=result*pw;
    pw:=pw*pw;
    b:=b div 2;
  end;
end;
end;
 
begin
reset(input,'input.txt');
rewrite(output,'output.txt');
read(a);
write(pow(2,a));
end.